#!/bin/sh

echo "1" > /tmp/vpn_status
echo "1" > /proc/sys/net/ipv4/conf/tap0/arp_ignore

#uci set convacs.cfg.status="OpenVPN(up.sh)已连接:`ifconfig tap0 | grep 'inet ' | awk -F '[ :]+' '{print $4"/"$8}'`"
#uci commit convacs
echo "OpenVPN is Up!"
#logger "OpenVPN is Up!"

#onvif-->remap-->gb28181
#/etc/init.d/onvif restart
#/etc/init.d/remap restart
#/etc/init.d/gb28181 restart
#/etc/init.d/arpproxy restart
#/etc/init.d/convacs_sroute restart
#/etc/init.d/ipreplace-of-remap restart
#/etc/init.d/accessgw_misc restart
#/etc/init.d/hportmap restart
#/etc/init.d/httpaccess restart
#/etc/init.d/internet_access restart
#/etc/init.d/http_proxy restart
#/etc/init.d/https_proxy restart
#/etc/init.d/rtsp_proxy restart
#logger "OpenVPN start arpproxy"
